<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let second = prompt('请输入秒数')

        function getHour(second){
            let hour = parseInt(second/60/60);
            return hour<10 ? '0' + hour : hour
        }

        function getMinute(second){
             let min = parseInt(second/60);
             return min<10 ? '0' + min : min
        }

        document.write('时:'+ getHour(second) + '\n分:' + getMinute(second) + '\n秒:'+ second)
    </script>
</body>
</html>